<!-- php:$title = "修改个人资料" --><!-- include tpl=head title=$title -->
<script type="text/javascript">
$(document).ready(function(){
	$("#userinfo_submit").submit(function(){
		$(this).ajaxSubmit({
			type:'post',
			url: api_url('usercp','info'),
			dataType:'json',
			success: function(rs){
				if(rs.status){
					$.dialog.tips("您的信息更新成功").lock();
					return true;
				}
				$.dialog.alert(rs.info);
				return false;
			}
		});
		return false;
	});
});
</script>
<div class="usercp">
	<div class="am-panel am-panel-default group">
		<div class="am-panel-bd">
			<form method="post" id="userinfo_submit" class="am-form am-form-horizontal">
				<input type="hidden" name="avatar" id="avatar" value="{$rs.avatar}" />
				<!-- loop from=$extlist key=$key value=$value -->
				<div class="am-form-group">
					<label class="am-u-sm-12 am-form-label">{$value.title}</label>
					<div class="am-u-sm-12 cp-{$value.identifier}">{$value.html}</div>
				</div>
				<!-- /loop -->
				<div class="am-form-group">
					<div class="am-u-sm-12"><input type="submit" value="提交修改" class="am-btn am-btn-primary" /></div>
				</div>
			</form>
		</div>
	</div>		
</div>
<!-- include tpl=foot -->